package com.lyz.dataStructure.algorithm.wangyi2020;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 16:46
 * @Description:
 **/

import com.sun.deploy.util.SyncAccess;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/8/3 16:46
 *@Description:
 **/
public class Main4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
            int n = sc.nextInt();
            int q = sc.nextInt();
            int[] nums = new int[n];
            for(int i =0;i<nums.length;i++){
                nums[i] = sc.nextInt();
            }
            int[] arr = new int[q];
             for(int j =0;j<arr.length;j++){
            arr[j] = sc.nextInt();
            }
            int count = 0;
            for(int i =0;i<nums.length;i++){
                 if(nums[i]>arr[i])
                 count++;
            }


    }
}
